import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Scanner;

import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

/*
 * @Author: qianmingtian
 * @Date: 2020-05-25 10:05:29
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-05-27 16:01:22
 * @FilePath: \qianmingtian.github.io\code\java\FileInputOutput.java
 */
public class FileInputOutput {
    public static void main(String[] args) {
        Scanner in = null;
        try {

            String dir = System.getProperty("user.dir");
            System.out.println(dir);
            in = new Scanner(Paths.get("G:\\github\\qianmingtian.github.io\\code\\java\\file.txt"), "UTF-8");

            

            PrintWriter out = new PrintWriter(dir+"\\file.txt");
            out.append("test content");
            out.write("witer ");
            out.println("prinbt");
            out.close();

            int[] a={3,4,3,2,4,5};
            String st = Arrays.toString(a);
            System.out.println(st);

        } catch (Exception fileException) {
            System.out.println(fileException);
        } finally {
            in.close();
        }
    }
}/*
  * @Author: qianmingtian
  * 
  * @Date: 2020-05-25 10:05:29
  * 
  * @LastEditors: OBKoro1
  * 
  * @LastEditTime: 2020-05-25 10:05:29
  * 
  * @FilePath: \\qianmingtian.github.io\code\java\FileInputOutput.java
  */
